package com.banyuan.HomeWork.classrelated.one;

public class Guess {
    public boolean guess(AClass a, int b) {
        boolean flag = true;
        if (a.getA() < b) {
            System.out.println("大了；");
        }
        if (a.getA() > b) {
            System.out.println("小了；");
        }
        if (a.getA() == b) {
            System.out.println("猜对了！");
            flag = false;
        }
        return flag;
    }
}
